package 第13届;


public class A_星期计算 {

	public static void main(String[] args) {
		int week = 1;
		for(int i = 0; i < 22; i++) {
			week *= 20;
			week = week % 7;
		}
		week += 6;
		week = week % 7;
		if(week == 0) {
			System.out.println(7);
		} else {
			System.out.println(week);
		}
	}
	
}
